<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<link rel="stylesheet" type="text/css" href="../../css/reset.css"/>
		<link rel="stylesheet" type="text/css" href="../../css/list.css"/>
		<script src="/qrcode/jquery2.1.4.js"></script>
		<!-- 最新版本的 Bootstrap 核心 CSS 文件 -->
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap.min.css" integrity="sha384-HSMxcRTRxnN+Bdg0JdbxYKrThecOKuH5zCYotlSAcp1+c8xmyTe9GYg1l9a69psu" crossorigin="anonymous">

		<!-- 可选的 Bootstrap 主题文件（一般不用引入） -->
		<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/css/bootstrap-theme.min.css" integrity="sha384-6pzBo3FDv/PJ8r2KRkGHifhEocL+1X2rVCTTkUfGk7/0pbek5mMa1upzvWbrUbOZ" crossorigin="anonymous">

		<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
		<script src="https://stackpath.bootstrapcdn.com/bootstrap/3.4.1/js/bootstrap.min.js" integrity="sha384-aJ21OjlMXNL5UyIl/XNwTMqvzeRMZH2w8c5cRVpzpU8Y5bApTppSuUkhZXN0VxHd" crossorigin="anonymous"></script>
		<link rel="stylesheet" href="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.css">
		<script src="https://unpkg.com/bootstrap-table@1.15.3/dist/bootstrap-table.min.js"></script>
	</head>
	<body>
	<table id="courier_table"></table>
	<script>
		$(function () {
			$("#courier_table").bootstrapTable({
				url:"/courier/list.do",
				striped:true,
				pageNumber:1,
				pagination:true,
				sidePagination:"server",
				pageSize:5,
				pageList:[5,10,20],
				showRefresh:true,
				queryParams: function (params) {
					var temp={
						offset:params.offset,
						pageNumber:params.limit
					};
					return temp;
				},
				columns:[
					{
						title:"编号",
						field:"id",
						sortable:true
					},
					{
						title:"昵称",
						field:"userName",
						sortable:true
					},
					{
						title:"手机号码",
						field:"phone",
						sortable:true
					},
					{
						title:"身份证号码",
						field:"idNumber",
						sortable:true
					},
					{
						title:"密码",
						field:"password",
						sortable:true
					},
						//TODO:增加派件数
					{
						title:"派件数",
						field:"sendNumber",
						sortable:true
					},
					{
						title:"注册时间",
						field:"registerTime",
						sortable:true
					},
					{
						title:"上次登录时间",
						field:"loginTime",
						sortable:true
					}
				]
			});
		});

	</script>

	</body>
</html>
